//
//  ChooseTitleModel.m
//  礼物go
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ChooseTitleModel.h"
#import "ChooseSubTitleModel.h"

@implementation ChooseTitleModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.myId = value;
    }
}

-(void)setChannels:(NSMutableArray *)channels{
    _channels = channels;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in channels) {
        ChooseSubTitleModel *model = [[ChooseSubTitleModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }

    _channels = [NSMutableArray arrayWithArray:array];
}



@end
